<!DOCTYPE html>
<html >
<head>
	<meta charset="UTF-8">
	<title>blog</title>
   <link rel="stylesheet"  href="style.css">
</head>
<body>
<?php
 include("function.php");
 $conn = conn();
 $result=mysqli_query($conn,"select * from catalog  ");
 ?>
	<div id="head">
		<h1>付杰的博客</h1>
	<?php
	include("public.php");
	?>
	</div>
	<?php
          $result=mysqli_query($conn,"select * from article  ");
          while($row= mysqli_fetch_assoc($result)){
	    ?>
	<div id="main">
	    <div id="item">
	    
	      <img src="<?php  echo $row['img'] ?>">
	      <p class="title"><a href="title-line.php?id=<?php  echo $row['id'] ?>"><?php  echo $row['title'] ?></a><span><?php  echo $row['view'] ?>人看过</span></p>
	      <p class="time"><?php  echo date("Y-m-d H:i:s", $row['create_time'] )?></p>
	      <p class="content"><?php  echo $row['desc'] ?></p>
	    </div>
			
	</div>

 <?php
   }
  ?>




</body>
</html>